import request from '/@/utils/request';

/**
 * 评论
 * @param params 要传的参数值
 * @returns 返回接口数据
 * 评论api接口集合
 */
export function useCommentApi() {
	return {
		getCommentList: (data) => {
			return request({
				url: '/member/comment/admin/list',
				method: 'post',
				data,
			});
		},
		addCommentList: (data) => {
			return request({
				url: '/member/comment/admin/add',
				method: 'post',
				data,
			});
		},
		editCommentList: (data) => {
			return request({
				url: '/member/comment/admin/update',
				method: 'post',
				data,
			});
		},
	};
}
